package com.lovejes.wloppor.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the t_buss_opporcinfo table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="t_buss_opporcinfo"
 */

public abstract class BaseTBussOpporcinfo  implements Serializable {

	public static String REF = "TBussOpporcinfo";
	public static String PROP_STATUS = "Status";
	public static String PROP_ONEIN = "Onein";
	public static String PROP_CRM = "Crm";
	public static String PROP_OPPORID = "Opporid";
	public static String PROP_CTIME = "Ctime";
	public static String PROP_OPTYPE = "Optype";
	public static String PROP_YEARRENTIN = "Yearrentin";
	public static String PROP_USERID = "Userid";
	public static String PROP_VIP = "Vip";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTBussOpporcinfo () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTBussOpporcinfo (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String opporid;
	private java.lang.String userid;
	private java.lang.String onein;
	private java.lang.String yearrentin;
	private java.lang.String optype;
	private java.lang.String crm;
	private java.lang.String vip;
	private java.lang.String status;
	private java.util.Date ctime;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: OPPORID
	 */
	public java.lang.String getOpporid () {
		return opporid;
	}

	/**
	 * Set the value related to the column: OPPORID
	 * @param opporid the OPPORID value
	 */
	public void setOpporid (java.lang.String opporid) {
		this.opporid = opporid;
	}



	/**
	 * Return the value associated with the column: USERID
	 */
	public java.lang.String getUserid () {
		return userid;
	}

	/**
	 * Set the value related to the column: USERID
	 * @param userid the USERID value
	 */
	public void setUserid (java.lang.String userid) {
		this.userid = userid;
	}



	/**
	 * Return the value associated with the column: ONEIN
	 */
	public java.lang.String getOnein () {
		return onein;
	}

	/**
	 * Set the value related to the column: ONEIN
	 * @param onein the ONEIN value
	 */
	public void setOnein (java.lang.String onein) {
		this.onein = onein;
	}



	/**
	 * Return the value associated with the column: YEARRENTIN
	 */
	public java.lang.String getYearrentin () {
		return yearrentin;
	}

	/**
	 * Set the value related to the column: YEARRENTIN
	 * @param yearrentin the YEARRENTIN value
	 */
	public void setYearrentin (java.lang.String yearrentin) {
		this.yearrentin = yearrentin;
	}



	/**
	 * Return the value associated with the column: OPTYPE
	 */
	public java.lang.String getOptype () {
		return optype;
	}

	/**
	 * Set the value related to the column: OPTYPE
	 * @param optype the OPTYPE value
	 */
	public void setOptype (java.lang.String optype) {
		this.optype = optype;
	}



	/**
	 * Return the value associated with the column: CRM
	 */
	public java.lang.String getCrm () {
		return crm;
	}

	/**
	 * Set the value related to the column: CRM
	 * @param crm the CRM value
	 */
	public void setCrm (java.lang.String crm) {
		this.crm = crm;
	}



	/**
	 * Return the value associated with the column: VIP
	 */
	public java.lang.String getVip () {
		return vip;
	}

	/**
	 * Set the value related to the column: VIP
	 * @param vip the VIP value
	 */
	public void setVip (java.lang.String vip) {
		this.vip = vip;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: CTIME
	 */
	public java.util.Date getCtime () {
		return ctime;
	}

	/**
	 * Set the value related to the column: CTIME
	 * @param ctime the CTIME value
	 */
	public void setCtime (java.util.Date ctime) {
		this.ctime = ctime;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.wloppor.domain.TBussOpporcinfo)) return false;
		else {
			com.lovejes.wloppor.domain.TBussOpporcinfo tBussOpporcinfo = (com.lovejes.wloppor.domain.TBussOpporcinfo) obj;
			if (null == this.getId() || null == tBussOpporcinfo.getId()) return false;
			else return (this.getId().equals(tBussOpporcinfo.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}